package gwt.bbsbot.client.widget;

import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.VerticalPanel;

public class DebugPanel extends VerticalPanel {
	//Debug
//	private Panel panelServerRes;
	private Label serverResponseLabel;
	private HTML htmlError;

	public DebugPanel() {
		super();
		createDebugForm();
	}
	/**
	 * デバッグフォームを作成する
	 */
	private void createDebugForm(){
		this.htmlError = new HTML();
		this.serverResponseLabel = new Label();
		this.add(this.htmlError);
		this.add(this.serverResponseLabel);
	}
	public Label getServerResponseLabel() {
		return serverResponseLabel;
	}
	public void setServerResponseLabel(Label serverResponseLabel) {
		this.serverResponseLabel = serverResponseLabel;
	}
	public HTML getHtmlError() {
		return htmlError;
	}
	public void setHtmlError(HTML htmlError) {
		this.htmlError = htmlError;
	}
	
	public void setText(String str){
		this.serverResponseLabel.setText(str);
	}
	
	public void setError(String str){
		this.htmlError.setHTML(str);
	}
}
